package com.wanjia.estate.utils;

import lombok.AccessLevel;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

@NoArgsConstructor(access = AccessLevel.PRIVATE)
public final class NumberUtil {

    public static String formatMoney(BigDecimal money) {
        return money == null ? null : money.setScale(2, BigDecimal.ROUND_HALF_UP).toPlainString();
    }
}
